package com.jtzc.aikf.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;


@AiService(
        wiringMode = EXPLICIT,
        streamingChatModel = "openAiStreamingChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "appointmentTools", //tools配置
        contentRetriever = "contentRetrieverXiaoju" //配置向量存储
)
public interface XiaoJuAgent {
    /**
     * 小矩智能体
     * @param memoryId
     * @param userMessage
     * @return
     */
    Flux<String> chat(@MemoryId Long memoryId, @UserMessage String userMessage);

}
